package com.snlab;

public class Test {
    public static void main(String[] args) {
        Integer obj1 = new Integer("100");
        Integer obj2 = new Integer("200");
        int retval = obj2.compareTo(obj1);
        if(retval > 0) {
           System.out.println("obj1 is greater than obj2");
        } else if(retval < 0) {
           System.out.println("obj1 is less than obj2");
        } else {
           System.out.println("obj1 is equal to obj2");
        }
     }
}
